class student {
    constructor(name,age){
        this.name=name;
        this.age=age;
        alert('姓名：'+this.name+'年龄：'+this.age)
    }
    run(){
        console.log('开心地奔跑');
    }
}
var A1=new student('A1',3002)